<?php
include_once('./base/xcx_sqlclass.php');
include_once('./base/xcx_commonclass.php');
include_once('./base/xcx_fileloaderclass.php');
$upfile=new fileLoader();
$mysql=new MMsql();
$fun=new commonfun();
$time_start = microtime(true);

$file = $_FILES['file'];//获取小程序传来的图片
$userid=$_POST['userid'];//"100004";
$url="../videos/";
$aa=$upfile->uploadfile($userid,$file,$url);
echo $aa;


$time_end = microtime(true);
//相减得到运行时间
$time = $time_end - $time_start;
 
echo "执行的时间为 $time seconds\n";

//echo json_encode($list[0]);